<div class="zs-body" data-ng-init="formInit('gzqdglqddd', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{cjsj:0}
    }) && loadData('gzqdglqddd');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">考勤设置</a>
            <i class="right-arr"></i>
            <a href="javascript:;">签到地点</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gzqdglqddd') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gzqdglqddd', gzqdglqddd.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gzqdglqddd')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="考勤地点" ng-model="gzqdglqddd.queryObject['kqdd:like']"/>
                </span>
            </div>
			<div class="operation item" style="margin-top:7px;">
				<input type="button" class="zs-btn orange" value="查询" 
					ng-click="loadData('gzqdglqddd')"/>
			</div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gzqdglqddd','allCheckbox');" />
                                    </th>
									<!-- <th>id</th> -->
									<th>考勤地点</th>
									<th>考勤范围</th>
									<th>创建时间</th>
									<th>备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gzqdglqddd.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gzqdglqddd',r);"
                                            ng-model="r.selected" />
                                    </td>
            						<td>
                                        <a ng-click="editRow('gzqdglqddd',r) && openWindow('edit');">
                                            <label ng-bind="r.kqdd"></label>
                                        </a>
                                   </td>
								   <td>
								        <a ng-click="editRow('gzqdglqddd',r) && openWindow('edit');">
								            <label ng-bind="r.kqfw"></label>
								        </a>
								   </td>
								   <td>
                                        <a ng-click="editRow('gzqdglqddd',r) && openWindow('edit');">
                                            <label ng-bind="r.cjsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gzqdglqddd',r) && openWindow('edit');">
                                            <label ng-bind="r.bz"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gzqdglqddd'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="签到地点编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
							<tr>
							    <td class="text" width="20%">考勤地点</td>
							    <td class="left" width="30%" colspan="3">
							    	<input type="text" ng-model="gzqdglqddd.editRow.kqdd" class="zs-input" />
							    </td>
							</tr>
							<tr>
							    <td class="text" width="20%">考勤地点坐标</td>
							    <td class="left" width="30%" colspan="3">
							    	<input type="text" ng-model="gzqdglqddd.editRow.kszbx" class="zs-input" />
							    </td>
								<!-- <td class="text" width="20%">考勤地点坐标y</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzqdglqddd.editRow.kszby" class="zs-input" />
								</td> -->
							</tr>
          					<tr>
								<td class="text" width="20%">考勤范围(米)</td>
								<td class="left" width="30%">
									<input type="text" ng-model="gzqdglqddd.editRow.kqfw" class="zs-input" />
								</td>
                                <td class="text" width="20%">备注</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gzqdglqddd.editRow.bz" class="zs-input" />
                                </td>
                            </tr>
							<tr>
							    <td class="text" width="20%">创建时间</td>
							     <td class="left" width="30%" colspan="3">
							     	<ag-Datebox id='cjsj' editable='false' showcurday='true'
							     		class="zs-input" style="width:175px;height: 28px"
							     		ng-model="gzqdglqddd.editRow.cjsj" ></ag-Datebox>
							    </td>
							</tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gzqdglqddd', gzqdglqddd.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>